local ads__shuiji = fk.CreateSkill {
  name = "ads__shuiji",
}

Fk:loadTranslationTable{
  ["ads__shuiji"] = "水计",
  [":ads__shuiji"] = "你可以将一张黑色手牌当【水淹七军】使用。",
  ["#ads__shuiji"] = "水计：你可以将一张黑色手牌当【水淹七军】使用",
  ["$ads__shuiji1"] = "此水可助我军大获全胜。",
  ["$ads__shuiji2"] = "冻结吧！",
}

ads__shuiji:addEffect("viewas", {
  anim_type = "offensive",
  pattern = "ty__drowning",
  prompt = "#ads__shuiji",
  handly_pile = true,
  filter_pattern = {
    min_num = 1,
    max_num = 1,
    pattern = ".|.|black|^equip",
  },
  view_as = function(self, player, cards)
    if #cards ~= 1 then return end
    local card = Fk:cloneCard("ty__drowning")
    card.skillName = ads__shuiji.name
    card:addSubcard(cards[1])
    return card
  end,
})

ads__shuiji:addAI(nil, "vs_skill")

return ads__shuiji
